{include file="header.html"}

<div class="main fn-clear">
	<div class="my-title">
    	<h1>收支明细<span><a href="index.php?c=index&a=trade_record">交易记录</a></span></h1>
        <form id="record_form">
        <p>交易时间：<input name="trade_time_start" type="text" id="trade_time_start">&nbsp;&nbsp;到&nbsp;&nbsp;<input name="trade_time_end" type="text" id="trade_time_end">&nbsp;&nbsp;<input type="hidden" id="record_type" value="balance"/><input class="search" id="record_search" name="" type="button" value="查询">&nbsp;&nbsp;&nbsp;&nbsp;收入：<span class="pay-in">{$balance.income}</span>&nbsp;元&nbsp;&nbsp;&nbsp;&nbsp;支出：<span class="pay-out">{$balance.pay}</span>&nbsp;元</p></form>
    </div>
    <div class="list-box">
    	<table>
            <tbody>
            	<tr class="title">
                	<td class="time">时间</td>
                	<td class="name">交易名称</td>
                	<td class="amount">收支</td>
                	<td class="payment">流水号</td>
                	<!--<td class="payment">操作</td>-->
                </tr>
            	{foreach from=$rs item=cons}
            	<tr>
                	<td class="time">{$cons.add_time}</td>
                	<td class="name">{$cons.note|regex_replace:"/\：.*/":""}：{$cons.order_sn_main}</td>
                	<td class="amount"><span class="pay-out">{$cons.countvalue}</span></td>
                	<td class="payment">{$cons.order_sn_main}</td>
                	<!--<td class="detail"><a href="" target="_blank">查看</a></td>-->
                </tr>
                {/foreach}
            </tbody>
            <tfoot>
            	<tr>
                	<td colspan="5">
                	{$page_str}
                    </td>
                </tr>
            </tfoot>
        </table>
    </div>
</div>
{include file="footer.html"}
